import Vue from 'vue'
import Router from 'vue-router'
import index from '../pages/index'
import producer_space from '../pages/producer_space/producer_space.vue'
import product from '../pages/product/product.vue'
import adver_product from '../pages/adver_product/adver_product.vue'
import VedioShow from '../pages/VedioShow/VedioShow.vue'
import adver_vedio_detail from '../pages/adver_vedio_detail/adver_vedio_detail.vue'
import producer_video_detail from '../pages/producer_video_detail/producer_video_detail.vue'
import producer_trade from '../pages/producer_trade/producer_trade.vue'

import header from '../pages/Header/header.vue'

import login from '../pages/login/login.vue'
import state from '../pages/state/state.vue'
import adver_space from '../pages/adver_space/adver_space.vue'
import adver_detail from '../pages/adver_detail/adver_detail.vue'
import adver_center from '../pages/adver_center/adver_center'
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'index',
            component: index,
            meta: { keepAlive: true }
        },
        {
            path: '/headr',
            name: 'headr',
            component: header
        },

        {
            path: '/login',
            name: 'login',
            component: login,
            meta: { keepAlive: false }
        },
        {
            path: '/producer_trade',
            name: 'producer_trade',
            component: producer_trade,
            meta: { keepAlive: true }
        },
        {
            path: '/adver_space',
            name: 'adver_space',
            component: adver_space,
            meta: { keepAlive: true }
        },
        {
            path: '/adver_detail',
            name: 'adver_detail',
            component: adver_detail,
            meta: { keepAlive: true }
        },
        {
            path: '/adver_center',
            name: 'adver_center',
            component: adver_center,
            meta: { keepAlive: true }
        },


        {
            path: '/VedioShow',
            name: 'VedioShow',
            component: VedioShow,
            meta: { keepAlive: true }
        },
        {
            path: '/adver_vedio_detail',
            name: 'adver_vedio_detail',
            component: adver_vedio_detail,
            meta: { keepAlive: true }
        },
        {
            path: '/producer_space',
            name: 'producer_space',
            component: producer_space,
            meta: { keepAlive: true }
        },

        {
            path: '/producer_video_detail',
            name: 'producer_video_detail',
            component: producer_video_detail,
            meta: { keepAlive: true }
        },
        {
            path: '/adver_product',
            name: 'adver_product',
            component: adver_product,
            meta: { keepAlive: true }
        },
        {
            path: '/adver_vedio_detail',
            name: 'adver_vedio_detail',
            component: adver_vedio_detail,
            meta: { keepAlive: true }
        },
        {
            path: '/product',
            name: 'product',
            component: product,
            meta: { keepAlive: true }
        },
        {
            path: '/state',
            name: 'state',
            component: state,
            meta: { keepAlive: false }
        },
    ]
})

// =======
// Vue.use(Router)

// export default new Router({
//   routes: [
//     {
//       path: '/',
//       name: 'producer_trade',
//       component: producer_trade,
//     },

//     {
//       path: '/',
//       name: 'VedioShow',
//       component: VedioShow,
//     },
//     {
//       path: '/adver_vedio_detail',
//       name: 'adver_vedio_detail',
//       component: adver_vedio_detail,
//     },
//     {
//       path: '/producer_space',
//       name: 'producer_space',
//       component: producer_space,
//     },
//     {
//       path: '/',
//       name: 'index',
//       component: index
//     },
//     {
//       path: '/',
//       name: 'producer_video_detail',
//       component: producer_video_detail,
//     },
//     {
//       path: '/adver_product',
//       name: 'adver_product',
//       component: adver_product,
//     },
//     {
//       path: '/',
//       name: 'adver_vedio_detail',
//       component: adver_vedio_detail,
//     },





//     {
//       path: '/',
//       name: 'product',
//       component: product,
//     },



//   ]
// })
// >>>>>>> 3456aeb7c0cc718d54261768aa4d9809e47345ee